﻿using UnityEngine;
using static EColor;

//食用后会变色的粘液
public class Mucus_ChangeColor : Item
{
    [Header("颜色，不要选All:")]
    [SerializeField]
    private EColor eColor;

    private void Start()
    {
        switch (eColor)
        {
            case Blue:
                m_spriteRenderer.color = Color.white;
                break;
            case Green:
                m_spriteRenderer.color = Color.yellow;
                break;
        }
    }

    protected override void OnPicked(Character player)
    {
        player.EColor = eColor;
    }
}
